/* CSS Document */
/*Animated swimming fish with bubbles*/

.BlueWaterBody {
  background-color: #9FCCEF; /*A5D2F3 / 80c5de Sky Blue*/
  top: -10px;
  width:100%;
  height:200px;
  }

/* Franklin's Container */
.fish {
  width: 100px;
  height: 40px;
  animation: swim 4s infinite; 
}

/* Franklin */
.fish-body {
  position: relative;
  margin-top: 10px;
  margin-left: 30px;
  background-color: orange;
  border-radius: 60%;
  width: 60px; 
  height: 40px;
}
.mouth {
  position: absolute;
  margin-left: 81px;
  margin-top: -17px;
  z-index: 1;
  background-color: #FFFFFF;   
  width: 8px;
  height: 1px;
}
.eye {
  position: absolute;
  margin-left: 46px;
  margin-top: 10px;
  z-index: 1;
  background-color: white;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}


.pupil {
  position: absolute;
  z-index: 2;
  margin-left: 5px;
  margin-top: 5px;
  background-color: black;
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.tail {
  margin-top: -35px; 
  background-color: orange;
  border-radius: 50%;
  transform: rotate(40deg);
  width: 40px;
  height: 20px;
}

.fin-bottom {
  margin-top: -10px;
  transform: rotate(-40deg);
}

/* Bubbles */
.bubbles {
  position: absolute;
  bottom: 0px; /* bottom: 0; showing from ground*/
  z-index: 5;
  margin-right: 50px;
  background-color:blue;    /*#A5F1F6; */
  border-radius: 40%;
  opacity: .80;
  width: 20px;
  height: 20px;
 
	box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
     animation: up 5s infinite;
}
.bubble-1 {
  left: 30px;
  animation: up 2s infinite;
}
.bubble-2 {
  left: 350px;
  animation: up 2s infinite;
}
.bubble-3 {
  left: 750px;
  opacity: .30;
  animation: up 5s infinite;
}
.bubble-4 {
  left: 1150px;
  animation: up 4s infinite;
}
.bubble-5 {
  left: 90px;
  animation: up 5s infinite;
}
.bubble-6 {
  left: 300px;
  opacity: .30;
  animation: up 3s infinite;
}
.bubble-7 {
  left: 670px;
  animation: up 4s infinite;
}

.bubble-8 {
  left: 980px;
  opacity: .30;
  animation: up 3s infinite;
}

/* Swim Animation */
@keyframes swim {
  0% {
    transform: translateY(-90px) translateX(0) rotate(30deg);
  }
  25% { 
    transform: translateY(10px) translateX(50px) rotate(20deg);
  }
  50% {
    transform: translateY(20px) translateX(100px);
  }
  75% {
    transform: translateY(30px) translateX(450px) rotate(-20deg);
  }
  100% {
    transform: translateY(-320px) translateX(980px) rotate(-60deg);
    /*-300 i.e. bottom to up side high location*/
  }
}

/* Bubbles Animation */
@keyframes up {
  100% {
    transform: translateY(-800px);
  }
}